<template>
    <el-form-item>
	<el-button type="primary" size="small" icon="el-icon-search" @click="refesh_list">查询</el-button>
	<el-button size="small" icon="el-icon-refresh" @click="reset">重置</el-button>
	</el-form-item>
</template>

<script>

export default {
    name:'Search',
    props: {
        expand_status:{
            type:Boolean,
            default:false,
        },
        expand:{
            type:Boolean,
            default:false,
        },
        search_visible:{
            type:Boolean,
            default:false
        },
		is_clear:{
            type:Boolean,
            default:false
        },
    },

    methods: {
        refesh_list() {
            this.$emit('refesh_list')
        },
        reset(){
			this.$emit('update:search_data', {})
			this.$emit('update:is_clear', true)
            this.$emit('refesh_list')
        }
    },
}
</script>
<style scoped>
    .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item{margin-bottom:5px}
</style>